﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wuc_estmator.ascx.cs"
    Inherits="CarLoanSystemWeb.Page.Estimator.wuc_estmator" %>
<%@ Register Assembly="AjaxValidationSummary" Namespace="AjaxValidationSummary" TagPrefix="cc4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<style type="text/css">
    .style5
    {
        font-size: small;
    }
    .style6
    {
        width: 175px;
        font-size: small;
    }
    .style20
    {
        width: 104px;
        height: 5px;
    }
    .style21
    {
        width: 7px;
        height: 5px;
    }
    .style22
    {
        height: 5px;
    }
    .style23
    {
        width: 104px;
        height: 19px;
    }
    .style24
    {
        width: 7px;
        height: 19px;
    }
    .style28
    {
        width: 106px;
        height: 19px;
    }
    .style29
    {
        height: 19px;
        width: 241px;
    }
    .style30
    {
        height: 19px;
        width: 244px;
    }
    .style31
    {
        width: 126px;
        height: 5px;
    }
    .style32
    {
        height: 19px;
        width: 247px;
    }
    .style33
    {
        color: #FF0000;
    }
</style>
<div id="box_content">
    <div id="box_content_head">
        <h1>
            ข้อมูลการแจ้งเตือน
        </h1>
    </div>
    <div id="box_content_body">
        <table style="height: 62px; width: 712px">
            <tr>
                <td class="style28">
                    <span class="style5">ยี่ห้อรถยนต์</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style32">
                    <asp:DropDownList ID="ddlBrand" runat="server" Height="20px" Width="214px" DataSourceID="SqlDataSource1"
                        DataTextField="CAR_BRAND_NAME" DataValueField="CAR_BRAND_ID" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlBrand_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="-1">กรุณาเลือก</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CAR_LOANConnectionString %>"
                        SelectCommand="SELECT * FROM [CAR_BRAND]"></asp:SqlDataSource>
                </td>
                <td class="style20">
                    <span class="style6">รุ่นรถยนต์</span>
                </td>
                <td class="style21">
                    :
                </td>
                <td class="style22">
                    <asp:DropDownList ID="ddlModel" runat="server" Height="20px" Width="195px" DataSourceID="SqlDataSource2"
                        DataTextField="CAR_MODEL_NAME" DataValueField="CAR_MODEL_ID" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlModel_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="-1">กรุณาเลือก</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CAR_LOANConnectionString %>"
                        SelectCommand="SELECT * FROM [CAR_MODEL] WHERE ([CAR_BRAND_ID] = @CAR_BRAND_ID)">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlBrand" Name="CAR_BRAND_ID" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="style28">
                    <span class="style5">ขนาดเครื่องยนต์</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style32">
                    <asp:DropDownList ID="ddlEngine" runat="server" Height="20px" Width="216px" DataSourceID="SqlDataSource3"
                        DataTextField="CAR_TYPE_ENGINE" DataValueField="CAR_ID" OnSelectedIndexChanged="ddlEngine_SelectedIndexChanged"
                        AutoPostBack="True">
                        <asp:ListItem Selected="True" Value="-1">กรุณาเลือก</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CAR_LOANConnectionString %>"
                        SelectCommand="SELECT * FROM [CAR_INFO] WHERE (([CAR_MODEL_ID] = @CAR_MODEL_ID) AND ([CAR_BRAND_ID] = @CAR_BRAND_ID))">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlModel" Name="CAR_MODEL_ID" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:ControlParameter ControlID="ddlBrand" Name="CAR_BRAND_ID" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
                <td class="style20">
                    <span class="style6">ราคา</span>
                </td>
                <td class="style21">
                    :
                </td>
                <td class="style22">
                    <table>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtPrice" runat="server" MaxLength="100" Width="100px" Enabled="False"></asp:TextBox>
                            </td>
                            <td>
                                บาท
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table style="width: 707px">
            <tr>
                <td class="style23">
                    <span class="style5">เงินดาวน์</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style30">
                    <asp:DropDownList ID="ddlDownPay" runat="server" Height="20px" Width="216px" DataSourceID="SqlDataSource4"
                        DataTextField="DOWN_PAYMENT_RATE" DataValueField="DOWN_PAYMENT_ID" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlDownPay_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="-1">กรุณาเลือก</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:CAR_LOANConnectionString %>"
                        SelectCommand="SELECT * FROM [DOWN_PAYMENT_INFO]"></asp:SqlDataSource>
                </td>
                <td class="style22">
                    <table>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtPay" runat="server" MaxLength="100" Width="100px" Enabled="False"></asp:TextBox>
                            </td>
                            <td>
                                บาท
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table style="height: 62px; width: 707px">
            <tr>
                <td class="style28">
                    <span class="style5">จำนวนเดือน</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style29">
                    <asp:DropDownList ID="ddlMonth" runat="server" Height="20px" Width="216px" DataSourceID="SqlDataSource5"
                        DataTextField="DEBT_MONTH" DataValueField="INTERREST_ID" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged"
                        AutoPostBack="True">
                        <asp:ListItem Selected="True" Value="-1">กรุณาเลือก</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:CAR_LOANConnectionString %>"
                        SelectCommand="SELECT * FROM [INTERREST_INFO] WHERE ([DOWN_PAYMENT_ID] = @DOWN_PAYMENT_ID)">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlDownPay" Name="DOWN_PAYMENT_ID" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
                <td class="style31">
                    <span class="style6">อัตราดอกเบี้ย</span>
                </td>
                <td class="style21">
                    :
                </td>
                <td class="style22">
                    <table>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtInterest" runat="server" MaxLength="100" Width="100px" Enabled="False"></asp:TextBox>
                            </td>
                            <td>
                                %
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="style28">
                    <span class="style5">ราคารวมดอกเบี้ย</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style29">
                    <asp:TextBox ID="txtPriceInterest" runat="server" MaxLength="100" Width="206px" Enabled="False"></asp:TextBox>
                </td>
                <td class="style31">
                    <span class="style6">จำนวนเงินที่ผ่อนต่องวด</span>
                </td>
                <td class="style21">
                    :
                </td>
                <td class="style22">
                    <table>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtPayMonth" runat="server" MaxLength="100" Width="100px" Enabled="False"></asp:TextBox>
                            </td>
                            <td>
                                บาท
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="box_content_footer">
    </div>
    <div class="action" style="margin-top: 15px">
        <asp:HyperLink ID="hplBack" runat="server" CssClass="button cancel" NavigateUrl="~/Page/Main/MainPage.aspx">ยกเลิก</asp:HyperLink>
    </div>
</div>